import time
class Base():
    def __init__(self,driver):
        self.driver = driver

    def get(self,url):
        self.driver.get(url)

    def send_keys(self,loc,info):
        ele = self.driver.find_element(*loc)
        ele.send_keys(info)

    def click(self,loc):
        ele = self.driver.find_element(*loc)
        ele.click()

    def sleep(self,sj):
        time.sleep(int(sj))

    def text(self,loc):
        return self.driver.find_element(*loc).text








